<?php
	
	// 取当前彩种开奖时间表
	$sql="select * from {$this->prename}auto_0  order by actionNo desc limit 20";
	$times=$this->getRows($sql, $this->page, $this->pageSize);

	
?>
<article class="module width_full">


<div>
<form action="/admin778899.php/data/lhcadded" target="ajax" method="post" call="addMember" dataType="html">
	<input type="hidden" name="id" id="autoid" value=""/>
	<input type="hidden" name="type"  value="30"/>
	<table class="popupModal">
		<tr>
			<td class="title" width="180">期号：</td>
			<td><input type="text" name="actionNo" id="actionNo" value=""/></td>
		</tr>
		<tr>
			<td class="title">截单时间：</td>
			<td><input type="text" name="actionTime" id="actionTime" value=""/></td>
		</tr>
		<tr>
			<td class="title">开奖号码：</td>
			<td><input type="text" name="data" id="data"  value=""/></td>
		</tr>
		<tr>
			<td class="title">操作：</td>
			<td><input type="submit" value="提交"/></td>
		</tr>
		<tr>
			<td align="right"><span class="spn4">提示：</span></td>
			<td><span class="spn4">请确认【期号】和【开奖号码】正确，输入后不可更改！<br/>号码格式如: 1,2,3,4,5</span></td>
		</tr>
	</table>
	
</form>
</div>

	
<input type="hidden" value="<?=$this->user['username']?>" />
	<header>
		<h3 class="tabs_involved">六合彩开奖数据
		
		</h3>
	</header>
 
	<table class="tablesorter" cellspacing="0">
		<thead>
			<tr>
			
				<th>开奖时间</th>
				<th>期数</th>				
				<th>开奖数据</th>
				<th>状态</th>
				<th>截单时间</th>				
				<th>手动开奖<!--备注--></th>
				
			</tr>
		</thead>
		<tbody>
			<?php

				
			foreach($times as $var){
					
							$number=$var['actionNo'];
							$sql="select * from {$this->prename}data where type={$this->type} and number='$number' limit 1";
							$data=$this->getRow($sql);
				

			?>
			<tr>
				<td><?=$this->ifs(date('Y-m-d H:i:s', $data['time']),'--')?></td>
				<td><?=$var['actionNo']?></td>
				<td><?=$this->ifs($data['data'], '--')?></td>
				<td><?=$this->iff($data['data'], '已开奖', '未开奖')?></td>
				<td><?=$var['actionTime']?></td>
			
				<td>
					<a href="javascript:void(0);" onclick="setvalue('<?=$var['id']?>','<?=$var['actionTime']?>','<?=$var['actionNo']?>','<?=$data['data']?>');" ><?=$this->iff($data['data'], '修改', '添加') ?></a>|<a href="/admin778899.php/system/deletelhc/<?=$var['id']?>" target="ajax" call="lhcReloadNotice">删除</a>
                    
				</td>
			</tr>
			
		<?php } ?>
           

		</tbody>
	</table>
	
<script>
function setvalue(idd,time,number,data){
	
	document.getElementById("autoid").value=idd;
	document.getElementById("actionNo").value=number;
	document.getElementById("actionTime").value=time;
	document.getElementById("data").value=data;
}
</script>


</article>